home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ MGA PowerDesk 1.xpl < prev    next >
Text File  |  2000-08-07  |  1KB  |  57 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="7"
  3. "COUNT"="2"
  4. "UIPATH"="Hardware\Video Cards\Matrox\General"
  5. "NAME"="PowerDesk VSync"
  6. "VERSION"="1.06"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable VSync (better image quality)" 
  9. "TEXT 2"="Disable VSync (better performance)"
  10. "DESCRIPTION 1"="Some settings for your Matrox G200 card (incl. Millennium and Mystique)."
  11. "DESCRIPTION 2"="NOTE: This plug-in requires that Matrox PowerDesk is installed."
  12. "AUTHOR"="Xteq Systems"
  13. "CONTACTURL"="http://www.xteq.com"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"=" "
  16. "COMMENT 2"="Thanks to CptSiskoX!"
  17.  
  18.  
  19. sP1="HKLM\SOFTWARE\Matrox\PowerDesk\Current Settings\"
  20. sV1="HKLM\SOFTWARE\Matrox\PowerDesk\Current Settings\Flip on VBlank" 'STR
  21. Sub Plugin_Initialize 
  22.  if RegPathExists(sP1) then
  23.     i=RegReadValue(sV1)
  24.     if i="1" then 
  25.        SetUiElement 1,true
  26.     else
  27.        SetUiElement 2,true
  28.     end if
  29.  
  30.  else
  31.     Call Disable() 
  32.  end if
  33.  
  34. End Sub
  35.  
  36.  
  37. Sub Plugin_CheckData(ElementIndex)
  38. End Sub
  39.  
  40.  
  41.  
  42. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  43.  if GetUIElement(1)=true then
  44.     i=1
  45.  else
  46.     i=0
  47.  end if
  48.  Call RegWriteValue(sV1,i,1)
  49.  
  50.  
  51.  Call Restart()
  52. End Sub
  53.  
  54.  
  55. Sub Plugin_Terminate 
  56. End Sub
  57.